import 'package:flutter/material.dart';

class SearchInput extends StatelessWidget {
  const SearchInput({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Container(
        margin: EdgeInsets.only(top: 18.0),
        padding: const EdgeInsets.only(left: 18.0, right: 18.0),
        height: 34.0,
        child: Expanded(
          child: Container(
            decoration: BoxDecoration(
                color: Colors.white, borderRadius: BorderRadius.circular(17.0)),
            child: TextField(
              decoration: InputDecoration(
                  contentPadding: EdgeInsets.only(top: 0, left: 18.0),
                  hintText: "易货宝 , 啥都有",
                  hintStyle: TextStyle(color: Colors.grey, fontSize: 14.0),
                  suffixIcon: Icon(Icons.search),
                  border: InputBorder.none),
            ),
          ),
        ),
      ),
    );
  }
}
